/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../../custom.less';

@grid-cell-prefix-cls: ~'@{css-prefix}grid-cell';
@grid-checkbox-prefix-cls: ~'@{css-prefix}grid-checkbox';

.TextEllipsis() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 8px;
  box-sizing: border-box;
}

.DefaultColumnHeight() {
  height: var(--ti-grid-default-column-height, 42px);
}

.MediumColumnHeight() {
  height: var(--ti-grid-medium-column-height, 46px);
}

.SmallColumnHeight() {
  height: var(--ti-grid-small-column-height, 30px);
}

.MiniColumnHeight() {
  height: var(--ti-grid-mini-column-height, 26px);
}

.DefaultTdPadding() {
  padding: var(--ti-table-td-padding-vertical, 2px) var(--ti-table-td-padding-horizontal, 8px);
}

.CellEllipsis() {
  &:not(.col__actived) {
    .@{grid-cell-prefix-cls} {
      .TextEllipsis();
      & > .@{grid-checkbox-prefix-cls} {
        .TextEllipsis();
        padding-left: 0;
      }
    }
  }
}
